﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace BioModel
{
    [DataContract]
    public class Kunde
    {
        #region Attributter
        [DataMember]
        private int telefonNr;
        [DataMember]
        private string navn;
        [DataMember]
        private string email;
        [DataMember]
        private string password;

        #endregion

        #region Konstruktør
        public Kunde()
        {
        }

        public Kunde(int telefonNr, string navn, string email, string password)
        {
            this.telefonNr = telefonNr;
            this.navn = navn;
            this.email = email;
            this.password = password;
        }
        #endregion

        #region Get og Set metoder
        [DataMember]
        public int TelefonNr
        {
            get { return telefonNr; }
            set { telefonNr = value; }
        }

        [DataMember]
        public string Navn
        {
            get { return navn; }
            set { navn = value; }
        }

        [DataMember]
        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        #endregion

        [DataMember]
        public string Password
        {
            get { return password; }
            set { password = value; }
        }
    }
}
